package com.tanhua.dubbo.api;

import com.tanhua.domain.mongo.Comment;
import com.tanhua.domain.vo.PageResult;

/**
 * @Classname CommentApi
 * @Description TODO 点赞，评论
 * @Date 2021/3/13 20:01
 * @Created by gan
 */
public interface CommentApi {
    //点赞
    Long save(Comment comment);

    //取消点赞
    Long remove(Comment comment);


    //分页查询
    PageResult<Comment> findPage(String publishId, int page, int pagesize);


    //通过发布者id和评论的类型分页查询
    PageResult findByUserId(Integer page, Integer pagesize, Integer type, Long userId);

}
